package com.nine.pesys.model.service;

import com.nine.pesys.base.BaseSupport;
import com.nine.pesys.model.entity.Role;
import com.nine.pesys.model.entity.User;

import java.util.List;

/**
 * Created by L先森 on 2014/12/27.
 */
public interface RoleService extends BaseSupport<Role>{

    List<Role> getByUser(User user);

    List<Role> getByName(String privilegeName);

    List<Role> getByCondition(Role role);
}
